package com.songjiakang.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.songjiakang.dao.MoneyDao;
import com.songjiakang.entity.Money;

@Service
public class MoneyServiceImp implements MoneyService{
	@Autowired
	public MoneyDao dao;
	//列表
	public PageInfo list(Integer pageNum, Integer pageSize) {
		PageHelper.startPage(pageNum, pageSize);
		List<Money> list=dao.list();
		PageInfo info = new PageInfo(list);
		return info;
	}
	
}
